CameraLive

interface CameraLive : Stream

Camera live stream control interface.

Provides control over the drone camera live stream, allowing to pause, resume or stop playback.

There is only one instance of this interface that is shared amongst all clients that have an open reference on this stream.

This stream supports suspension. When it is started and gets interrupted because another stream starts, or because streaming gets disabled globally, then it will move to the SUSPENDED state. Once the interrupting stream stops, or streaming gets enabled, then it will try and be resumed in the state it was before suspension. Also, this implies that this stream may be started even while streaming is globally disabled. In such a case, it will move to the SUSPENDED state until either it is STOPPED by client request, or streaming gets enabled.

The stream is neither stopped nor released when the reference that provides it is closed.

Types

Link copied to clipboard
Camera live stream playback state.
Link copied to clipboard
interface Source
Identifies a source for CameraLive.

Functions

Link copied to clipboard
Opens a sink from this stream.
Link copied to clipboard
abstract fun pause(): Boolean
Requests playback to pause.
Link copied to clipboard
abstract fun play(): Boolean
Requests playback to start.
Link copied to clipboard
Informs about current playback state.
Link copied to clipboard
abstract fun state(): Stream.State
Informs about current stream state.
Link copied to clipboard
abstract fun stop()
Stops the stream.